package com.houweishi.module.history.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.houweishi.module.history.mapper.BizWorkHistoryMapper;
import com.houweishi.module.history.domain.BizWorkHistory;
import com.houweishi.module.history.service.IBizWorkHistoryService;

/**
 * 员工工作经历Service业务层处理
 * 
 * @author houweishi
 * @date 2023-02-21
 */
@Service
public class BizWorkHistoryServiceImpl implements IBizWorkHistoryService 
{
    @Autowired
    private BizWorkHistoryMapper bizWorkHistoryMapper;

    /**
     * 查询员工工作经历
     * 
     * @param id 员工工作经历主键
     * @return 员工工作经历
     */
    @Override
    public BizWorkHistory selectBizWorkHistoryById(Long id)
    {
        return bizWorkHistoryMapper.selectBizWorkHistoryById(id);
    }

    /**
     * 查询员工工作经历列表
     * 
     * @param bizWorkHistory 员工工作经历
     * @return 员工工作经历
     */
    @Override
    public List<BizWorkHistory> selectBizWorkHistoryList(BizWorkHistory bizWorkHistory)
    {
        return bizWorkHistoryMapper.selectBizWorkHistoryList(bizWorkHistory);
    }

    /**
     * 新增员工工作经历
     * 
     * @param bizWorkHistory 员工工作经历
     * @return 结果
     */
    @Override
    public int insertBizWorkHistory(BizWorkHistory bizWorkHistory)
    {
        return bizWorkHistoryMapper.insertBizWorkHistory(bizWorkHistory);
    }

    /**
     * 修改员工工作经历
     * 
     * @param bizWorkHistory 员工工作经历
     * @return 结果
     */
    @Override
    public int updateBizWorkHistory(BizWorkHistory bizWorkHistory)
    {
        return bizWorkHistoryMapper.updateBizWorkHistory(bizWorkHistory);
    }

    /**
     * 批量删除员工工作经历
     * 
     * @param ids 需要删除的员工工作经历主键
     * @return 结果
     */
    @Override
    public int deleteBizWorkHistoryByIds(Long[] ids)
    {
        return bizWorkHistoryMapper.deleteBizWorkHistoryByIds(ids);
    }

    /**
     * 删除员工工作经历信息
     * 
     * @param id 员工工作经历主键
     * @return 结果
     */
    @Override
    public int deleteBizWorkHistoryById(Long id)
    {
        return bizWorkHistoryMapper.deleteBizWorkHistoryById(id);
    }
}
